package com.lijie.ljblog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
@ApiModel(value="Liuyan对象", description="")
public class Liuyan implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "留言/评论人")
    private Integer personId;

    @ApiModelProperty(value = "留言/评论 内容")
    private String message;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "ip地点")
    private String location;
    @ApiModelProperty(value = "ip地点经度")
    private String jd;
    @ApiModelProperty(value = "ip地点纬度")
    private String wd;
    @ApiModelProperty(value = "评论的博客id")
    private Integer blogId;
    @ApiModelProperty(value = "评论的博客请求ip")
    private String ip;

    @TableField(exist = false)
    private List<Replay> replays;
    @TableField(exist = false)
    private Person person;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getJd() {
        return jd;
    }

    public void setJd(String jd) {
        this.jd = jd;
    }

    public String getWd() {
        return wd;
    }

    public void setWd(String wd) {
        this.wd = wd;
    }

    public List<Replay> getReplays() {
        return replays;
    }

    public void setReplays(List<Replay> replays) {
        this.replays = replays;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPersonId() {
        return personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getBlogid() {
        return blogId;
    }

    public void setBlogid(Integer blogid) {
        this.blogId = blogid;
    }

    @Override
    public String toString() {
        return "Liuyan{" +
        "id=" + id +
        ", personId=" + personId +
        ", message=" + message +
        ", createTime=" + createTime +
        ", location=" + location +
        ", blogid=" + blogId +
        "}";
    }
}
